package pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {
    private Integer sId;
    private String studentNum;
    private String studentName;
    private String gender;
    private int age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private int classId;
    private int hostelId;
    private String studentPhone;
    private String studentEmail;
    private String homeAddress;
    private String emergencyContact;
    private String emergencyPhone;
    private String major;
    private String status;
    private String delFlag;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;
    private String remark;

    public Student() {
    }

    public Student(String studentNum, String studentName) {
        this.studentNum = studentNum;
        this.studentName = studentName;
    }

    public Student(Integer sId, String studentNum, String studentName, String gender, int age, Date birthday, int classId, int hostelId, String studentPhone, String studentEmail, String homeAddress, String emergencyContact, String emergencyPhone, String major, String status, String delFlag, String createBy, Date createDate, String updateBy, Date updateDate, String remark) {
        this.sId = sId;
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.hostelId = hostelId;
        this.studentPhone = studentPhone;
        this.studentEmail = studentEmail;
        this.homeAddress = homeAddress;
        this.emergencyContact = emergencyContact;
        this.emergencyPhone = emergencyPhone;
        this.major = major;
        this.status = status;
        this.delFlag = delFlag;
        this.createBy = createBy;
        this.createDate = createDate;
        this.updateBy = updateBy;
        this.updateDate = updateDate;
        this.remark = remark;
    }

    public Student(String studentNum, String studentName, String gender, int age, Date birthday, int classId, int hostelId, String studentPhone, String studentEmail, String homeAddress, String emergencyContact, String emergencyPhone, String major, String status, String delFlag, String createBy, Date createDate, String remark) {
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.hostelId = hostelId;
        this.studentPhone = studentPhone;
        this.studentEmail = studentEmail;
        this.homeAddress = homeAddress;
        this.emergencyContact = emergencyContact;
        this.emergencyPhone = emergencyPhone;
        this.major = major;
        this.status = status;
        this.delFlag = delFlag;
        this.createBy = createBy;
        this.createDate = createDate;
        this.remark = remark;
    }

    public Student(Integer sId, String  studentNum, String studentName, String gender, int age, Date birthday, int classId, int hostelId, String studentPhone, String studentEmail, String homeAddress, String emergencyContact, String emergencyPhone, String major, String status, String delFlag, String createBy, Date createDate, String remark) {
        this.sId = sId;
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.hostelId = hostelId;
        this.studentPhone = studentPhone;
        this.studentEmail = studentEmail;
        this.homeAddress = homeAddress;
        this.emergencyContact = emergencyContact;
        this.emergencyPhone = emergencyPhone;
        this.major = major;
        this.status = status;
        this.delFlag = delFlag;
        this.createBy = createBy;
        this.createDate = createDate;
        this.remark = remark;
    }


    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public Integer getsId() {
        return sId;
    }

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getHostelId() {
        return hostelId;
    }

    public void setHostelId(int hostelId) {
        this.hostelId = hostelId;
    }

    public String getStudentPhone() {
        return studentPhone;
    }

    public void setStudentPhone(String studentPhone) {
        this.studentPhone = studentPhone;
    }

    public String getStudentEmail() {
        return studentEmail;
    }

    public void setStudentEmail(String studentEmail) {
        this.studentEmail = studentEmail;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact;
    }

    public String getEmergencyPhone() {
        return emergencyPhone;
    }

    public void setEmergencyPhone(String emergencyPhone) {
        this.emergencyPhone = emergencyPhone;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
